package com.funtl.apache.dubbo.consumer.controller;

import com.funtl.apache.dubbo.transaction.api.service.api.DubboTransactionService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EchoController {

    @Reference(version = "1.0.0")
    private DubboTransactionService transactionService;


    @GetMapping(value = "/echo")
    public String echo() {
        transactionService.create();
        return "success";
    }
}
